package itheima.zuoye.test4;

public class Car {
    private String model;
    private String licensePlate;

    public Car() {
    }

    public Car(String model, String licensePlate) {
        this.model = model;
        this.licensePlate = licensePlate;

    }
    // Getter和Setter
    public String getModel() { return model; }
    public void setModel(String model) { this.model = model; }
    public String getLicensePlate() { return licensePlate; }
    public void setLicensePlate(String licensePlate) { this.licensePlate = licensePlate; }

    // 启动方法
    public void start() {
        System.out.println("汽车启动");
    }

    // 停止方法
    public void stop() {
        System.out.println("汽车停止");
    }
}
